import dashboardHttpRequest from "@/db/dashboard"
import type * as Dashboard from "./type"

// 获取内容统计数据
export function getStatisticalData() {
  return dashboardHttpRequest.getStatisticalData<Dashboard.StatisticalData>()
}

// 获取内容数据(图表)
export function getChartData() {
  return dashboardHttpRequest.getWeeklyCaseData<{ weekData: Dashboard.ContentDataRecord[] }>()
}
